<template>
  <div class="ly-details">
    <ul class="ly-list">
      <li v-for="(item,key,i) in customerInfo" :key="i"><label>{{key}} ：</label>{{item}}</li>
    </ul>
    <div class="ly-btn" @click="$router.push('/salesman')">去编辑关联业务员</div>
  </div>
</template>

<script>
  import {mapGetters} from "vuex"

  export default {
    computed: {
      ...mapGetters([
        'customerInfo',
      ]),
    },
    created() {
      console.log(this.customerInfo)
    }
  }
</script>

<style scoped lang="scss">
  .ly-details {
    width: 100%;
    padding: 20px;
    background: #fff;
    position: relative;
    .ly-list{
      width: 100%;
      li{
        width: 100%;
        line-height: 40px;
        label{
          display: inline-block;
          vertical-align: top;
          width: 100px;
          text-align: right;
          padding-right: 10px;
          color: #999;
        }
      }
    }
    .ly-btn{
      background: #608BF5;
      padding: 8px 10px;
      border-radius: 4px;
      font-size: 14px;
      color: #fff;
      cursor: pointer;
      position: absolute;
      bottom: 20px;
      right: 20px;
      z-index: 2;
      transition: .3s;
      &:hover{
        background: #0a6cd6;
      }
    }
  }
</style>